//
//  DetailViewController_View.m
//  iStock Global
//
//  Created by YING CHIEH WENG on 2011/6/25.
//  Copyright 2011年 Trade Stock. All rights reserved.
//

#import "DetailViewController_View.h"
#import "DetailViewController.h"

@implementation DetailViewController_View
@synthesize detailviewcontroller;
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

 
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    
    //繪圖程式 以下三個步驟是專門在空白的View上將字串輸出
    /*設定字形顏色 */
    UIColor *magentaColor =[UIColor colorWithRed:1.0f green:1.0f blue:1.0f alpha:1.0f];
    [magentaColor set]; 
    /*設定字形與大小*/
    UIFont *helveticaBold = [UIFont fontWithName:@"HelveticaNeue-Bold" size:30.0f];    
    /*輸出位置*/    
    // [[detailviewcontroller out_productname] drawAtPoint:CGPointMake(100 , 160) withFont:helveticaBold];
    NSString *DisplayName;
    DisplayName=[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"]; 
    
    //標記:Add Target need Program 
    //標記:Add New Market 
    if ([DisplayName isEqualToString:@"2D_BASIC_LF_iPhone_ETF"]) {
        
        [@"ETF" drawAtPoint:CGPointMake(100 , 160) withFont:helveticaBold];	        
        
        
    } 
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPhone_iStock Global"]  ) {
      [@"ETF" drawAtPoint:CGPointMake(100 , 160) withFont:helveticaBold];        
        
    }
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPhone_HK"]  ) {
       [@"ETF" drawAtPoint:CGPointMake(100 , 160) withFont:helveticaBold];        
        
    }
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPhone_CH"]  ) {
        [@"ETF" drawAtPoint:CGPointMake(100 , 160) withFont:helveticaBold];
        
        
    }	
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPhone_US"]  ) {
       [@"ETF" drawAtPoint:CGPointMake(100 , 160) withFont:helveticaBold];
        
    }		        
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPhone_UK"]  ) {
        [@"ETF" drawAtPoint:CGPointMake(100 , 160) withFont:helveticaBold]; 
        
        
    }
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPhone_CN"]  ) {
        
        [@"ETF" drawAtPoint:CGPointMake(100 , 160) withFont:helveticaBold];
        
        
    }		         
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPhone_KS"]  ) {
        
       [@"ETF" drawAtPoint:CGPointMake(100 , 160) withFont:helveticaBold];
    }	  
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPad_iStock Global"]  ) {
        
         [@"iStockGlobal" drawAtPoint:CGPointMake(260 , 460) withFont:helveticaBold];        
    }
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPad_HK"]  ) {
        
        [@"香港炒股系統" drawAtPoint:CGPointMake(260 , 460) withFont:helveticaBold];
        
        
    }            
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPhone_SI"]  ) {
        
       [@"ETF" drawAtPoint:CGPointMake(100 , 160) withFont:helveticaBold];        
        
    }                       
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPad_CH"]  ) {
       [@"中国股票操盘" drawAtPoint:CGPointMake(280 , 460) withFont:helveticaBold];        
        
    }                  
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPhone_AX"]  ) {
        [@"ETF" drawAtPoint:CGPointMake(100 , 160) withFont:helveticaBold];
        
        
    }   
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPhone_GR"]  ) {
        
       [@"ETF" drawAtPoint:CGPointMake(100 , 160) withFont:helveticaBold];
        
        
    }   
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPhone_PA"]  ) {
      [@"ETF" drawAtPoint:CGPointMake(100 , 160) withFont:helveticaBold];
        
        
    }   
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPad_CN"]  ) {
       [@"Canada Stock Trading System" drawAtPoint:CGPointMake(150 , 460) withFont:helveticaBold];
        
        
    }		           
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPad_PA"]  ) {
       [@"Française stocks commerciaux programme" drawAtPoint:CGPointMake(80 , 460) withFont:helveticaBold];
        
        
    }		        
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPad_GR"]  ) {
        
       [@"Deutschland Stock Trade" drawAtPoint:CGPointMake(200 , 460) withFont:helveticaBold];
        
        
    }               
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPad_AX"]  ) {
        
        [@"Australian Stock" drawAtPoint:CGPointMake(260 , 460) withFont:helveticaBold];
        
        
    }         
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPad_UK"]  ) {
        
        [@"UK Stock" drawAtPoint:CGPointMake(260 , 460) withFont:helveticaBold];
        
        
    }      
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPad_ETF"]  ) {
        
        [@"ETF for iPad" drawAtPoint:CGPointMake(260 , 460) withFont:helveticaBold];
        
        
    }      
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPad_ETF"]  ) {
        
        [@"Singapore stock for iPad" drawAtPoint:CGPointMake(260 , 460) withFont:helveticaBold];
        
        
    }      
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPad_US"]  ) {
        
        [@"US stock for iPad" drawAtPoint:CGPointMake(260 , 460) withFont:helveticaBold];
        
        
    }      
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPad_INDIA"]  ) {
        
        [@"INDIA stock for iPad" drawAtPoint:CGPointMake(260 , 460) withFont:helveticaBold];
        
        
    }         
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPhone_INDIA"]  ) {
        
        [@"INDIA stock" drawAtPoint:CGPointMake(260 , 460) withFont:helveticaBold];
        
        
    }     
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPad_NZ"]  ) {
        
        [@"New Zealand stock for iPad" drawAtPoint:CGPointMake(180 , 460) withFont:helveticaBold];
        
        
    }       
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPhone_NZ"]  ) {
        
        [@"New Zealand stock for iPad" drawAtPoint:CGPointMake(180 , 460) withFont:helveticaBold];
        
        
    }       
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPad_MI"]  ) {
        
        [@"Italy stock for iPad" drawAtPoint:CGPointMake(180 , 460) withFont:helveticaBold];
        
        
    } 
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPhone_MI"]  ) {
        
        [@"Italy stock for iPad" drawAtPoint:CGPointMake(180 , 460) withFont:helveticaBold];
        
        
    }           
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPad_SA"]  ) {
        
        [@"Brazil stock for iPad" drawAtPoint:CGPointMake(180 , 460) withFont:helveticaBold];
        
        
    }     
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPhone_SA"]  ) {
        
        [@"Brazil stock for iPad" drawAtPoint:CGPointMake(180 , 460) withFont:helveticaBold];
        
        
    }         
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPad_MX"]  ) {
        
        [@"Mexico stock for iPad" drawAtPoint:CGPointMake(180 , 460) withFont:helveticaBold];
        
        
    }       
    else if([DisplayName isEqualToString:@"2D_BASIC_LF_iPhone_MX"]  ) {
        
        [@"Mexico stock for iPad" drawAtPoint:CGPointMake(180 , 460) withFont:helveticaBold];
        
        
    }         
    else if([DisplayName isEqualToString:@"2D_BASIC_MESA_iPhone_Global"]  ) {
        
        [@"iStockGlobal" drawAtPoint:CGPointMake(260 , 460) withFont:helveticaBold];        
    }
    else if([DisplayName isEqualToString:@"2D_Basic_MESA_Universal_AX"]  ) {
        
        [@"Australian Stock" drawAtPoint:CGPointMake(260 , 460) withFont:helveticaBold];
        
        
    }        
    else if([DisplayName isEqualToString:@"2D_Basic_MESA_Universal_UK"]  ) {
        
        [@"Trend Cycle for UK" drawAtPoint:CGPointMake(260 , 460) withFont:helveticaBold];
        
        
    }  
    else if([DisplayName isEqualToString:@"2D_Basic_MESA_Universal_US"]  ) {
        
        [@"Trend Cycle for US" drawAtPoint:CGPointMake(260 , 460) withFont:helveticaBold];
        
        
    }         
    else if([DisplayName isEqualToString:@"2D_Basic_MESA_Universal_HK"]  ) {
        
        [@"香港炒股系統" drawAtPoint:CGPointMake(260 , 460) withFont:helveticaBold];
        
        
    }             
    else if([DisplayName isEqualToString:@"2D_Basic_MESA_Universal_CH"]  ) {
        
        [@"长城股票系统" drawAtPoint:CGPointMake(260 , 460) withFont:helveticaBold];
        
        
    }  
    else if([DisplayName isEqualToString:@"2D_Basic_MESA_Universal_INDIA"]  ) {
        
        [@"INDIA stock" drawAtPoint:CGPointMake(260 , 460) withFont:helveticaBold];
        
        
    }        
    
    
    
}
 

@end
